package pck_Service02;

import android.content.Context;
import android.opengl.GLSurfaceView.Renderer;
import baseClass.Global;
import com.nPones.MainActivity;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import mainSrc.GlobalSaveData;

public class service_GLrenderer
  implements GLSurfaceView.Renderer
{
  public service_Character m_char;
  
  public service_GLrenderer(Context paramContext)
  {
    service_ServiceGlobal.bRecycle = false;
    service_ServiceGlobal.bRecycleEnd = false;
    this.m_char = new service_Character();
  }
  
  public void onDrawFrame(GL10 paramGL10)
  {
    if (service_ServiceGlobal.bRecycleEnd)
    {
      Global.GetInstance().m_activity.StopServiceViewRE2();
      return;
    }
    if (service_ServiceGlobal.bRecycle)
    {
      this.m_char.recycleBitmap();
      service_ServiceGlobal.bRecycleEnd = true;
      return;
    }
    paramGL10.glClear(16384);
    paramGL10.glLoadIdentity();
    paramGL10.glTranslatef(0.0F, 0.0F, 0.0F);
    this.m_char.draw(paramGL10);
  }
  
  public void onSurfaceChanged(GL10 paramGL10, int paramInt1, int paramInt2)
  {
    paramInt1 = GlobalSaveData.GetInstance().SetSize();
    paramGL10.glViewport(0, 0, paramInt1, paramInt1);
    paramGL10.glOrthof(0.0F, paramInt1, paramInt1, 0.0F, 1.0F, -1.0F);
  }
  
  public void onSurfaceCreated(GL10 paramGL10, EGLConfig paramEGLConfig)
  {
    this.m_char.loadGLTexture(paramGL10, Global.GetInstance().m_context);
    paramGL10.glEnable(3553);
    paramGL10.glClearColor(0.0F, 0.0F, 0.0F, 0.0F);
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     pck_Service02.service_GLrenderer
 * JD-Core Version:    0.7.0.1
 */